<%@ Reference Control="~/Research/consentformpublisher.ascx" %>
<%@ Reference Control="~/Research/createnewprocessbar.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ConsentFormPublisher" Src="ConsentFormPublisher.ascx" %>
<%@ Register TagPrefix="uc1" TagName="CreateNewProcessBar" Src="CreateNewProcessBar.ascx" %>

<%@ Page Language="c#" MaintainScrollPositionOnPostback="True" Inherits="PHSRAG.Insight21.Humans.Details.ProtocolDetails"
    CodeFile="ProtocolDetails.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ProtocolDetails</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		function SaveCheckBoxState(checkBox,hiddenFieldName){
			var checkBox = document.getElementById(checkBox);
			if(checkBox != null && checkBox.checked)
			{			
				var hiddenField = document.getElementsByName(hiddenFieldName);
				if(hiddenField != null)
				{
					hiddenField(0).value = "True";					
				}
			}
			else if (checkBox != null && !checkBox.checked)
			{
			    var hiddenField = document.getElementsByName(hiddenFieldName);
				if(hiddenField != null)
				{
					hiddenField(0).value = "False";					
				}			
			}
		}
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server" Visible="false">
                                </cc1:HumansSubModuleNavigation>
                                <cc1:AnimalsSubModuleNavigation ID="animalsSubModNavigation" Visible="false" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Panel ID="newProcessPanel" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;&nbsp;
                                <asp:ImageButton ID="viewFullApplication" Visible="false" runat="server" ImageUrl="../Images/b_current_view.gif">
                                </asp:ImageButton>
                            </td>
                            <td align="right">
                                <asp:ImageButton runat="server" ToolTip="click to view Protocol Abstract" ID="protocolAbstract"
                                    Visible="false" ImageUrl="~/Images/protocol_Abstract.gif" OnClick="OnProtocolAbstract" />
                            </td>
                            <td align="right">
                                <asp:Button ID="toggleProtocolLock" runat="server" CssClass="Button" Text="Lock"
                                    OnClick="OnToggleProtocolLockClick"></asp:Button>&nbsp;</td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible">
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0">
                        <tr>
                            <td>
                                <asp:Panel ID="consentFormPublisherPanel" runat="server">
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table class="PaddedDataTitle" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width:2%">
                                &nbsp;<asp:ImageButton ID="initialReviewToggler" runat="server"></asp:ImageButton></td>
                            <td style="width:98%">
                                Initial Review Summary |
                                <asp:Label ID="irContainerStatus" runat="server"></asp:Label></td>
                        </tr>
                    </table>
                    <asp:Panel ID="initialReviewContainer" runat="server">
                        <table cellspacing="0" width="100%" cellpadding="0">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="initialReview" CssClass="DataGrid" AutoGenerateColumns="False"
                                        runat="server" Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="MeetingDate" ReadOnly="True" HeaderText="Meeting Date"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdIR" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Workflow History"></asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdIR" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn Visible="False" DataField="BoardReviewId"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadIR" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" ToolTip="Remove Review Letter" ID="removeNotificationLetterIR"
                                                        Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <br />
                    <table class="PaddedDataTitle" width="100%">
                        <tr>
                            <td style="width:2%">
                                &nbsp;<asp:ImageButton ID="crToggle" runat="server"></asp:ImageButton></td>
                            <td style="width:98%">
                                <asp:Label ID="crLabel" runat="server">Continuing</asp:Label>
                                Reviews |
                                <asp:Label ID="crNumberTotal" runat="server"></asp:Label>&nbsp;Total |
                                <asp:Label ID="crNumberPending" runat="server"></asp:Label>&nbsp;Pending</td>
                        </tr>
                    </table>
                    <asp:Panel ID="continuingReviewsContainer" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="continuingReviews" CssClass="DataGrid" AutoGenerateColumns="False"
                                        runat="server" Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="crParentRowIndicator"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="FormsId" ReadOnly="True" HeaderText="CR#"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="CRStatus" ReadOnly="True" HeaderText="Project Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="MeetingDate" ReadOnly="True" HeaderText="Meeting Date"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdCR" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="true" HeaderText="Workflow History">
                                                <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:ImageButton Visible="False" ID="workflowReportCR" runat="server" Height="20px"
                                                        CommandName="ReportImageClickCR"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdCR" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="BoardReviewId" Visible="False"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadCR" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" ToolTip="Remove Review Letter" ID="removeNotificationLetterCR"
                                                        Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="triennialReviewsHeader" runat="server" Visible="false">
                        <br />
                        <table class="PaddedDataTitle" width="100%">
                            <tr>
                                <td style="width:2%">
                                    &nbsp;<asp:ImageButton ID="trToggle" runat="server"></asp:ImageButton></td>
                                <td style="width:98%">
                                    Triennial Reviews |
                                    <asp:Label ID="trNumberTotal" runat="server"></asp:Label>&nbsp;Total |
                                    <asp:Label ID="trNumberPending" runat="server"></asp:Label>&nbsp;Pending</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="triennialReviewsContainer" runat="server" Visible="false">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="triennialReviews" CssClass="DataGrid" AutoGenerateColumns="False"
                                        runat="server" Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="trParentRowIndicator"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="FormsId" ReadOnly="True" HeaderText="TR#"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="CRStatus" ReadOnly="True" HeaderText="Project Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="MeetingDate" ReadOnly="True" HeaderText="Meeting Date"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdTR" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="true" HeaderText="Workflow History">
                                                <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:ImageButton Visible="False" ID="workflowReportTR" runat="server" Height="20px"
                                                        CommandName="ReportImageClickTR"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdTR" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="BoardReviewId" Visible="False"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadTR" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" ToolTip="Remove Review Letter" ID="removeNotificationLetterTR"
                                                        Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <br />
                    <table class="PaddedDataTitle" width="100%">
                        <tr>
                            <td style="width:2%">
                                &nbsp;<asp:ImageButton ID="amToggler" runat="server"></asp:ImageButton></td>
                            <td style="width:98%">
                                Amendments |
                                <asp:Label ID="amNumberTotal" runat="server"></asp:Label>&nbsp;Total |
                                <asp:Label ID="amNumberPending" runat="server"></asp:Label>&nbsp;Pending
                            </td>
                        </tr>
                    </table>
                    <asp:Panel ID="amendmentsContainer" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="amendments" CssClass="DataGrid" AutoGenerateColumns="False" runat="server"
                                        Width="100%" AllowCustomPaging="True">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="amParentRowIndicator"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="FormsId" ReadOnly="True" HeaderText="AME#"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="SponsorAmendmentNumber" ReadOnly="True" HeaderText="Sponsor AME#">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdAME" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="true" HeaderText="Workflow History">
                                                <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:ImageButton Visible="False" ID="workflowReportAMD" runat="server" Height="20px"
                                                        CommandName="ReportImageClickAMD"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdAMD" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="BoardReviewId" Visible="False"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadAME" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" EnableViewState="true" ToolTip="Remove Review Letter"
                                                        ID="removeNotificationLetterAME" Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="adverseEventsHeader" runat="server">
                        <br />
                        <table class="PaddedDataTitle" width="100%">
                            <tr>
                                <td style="width:2%">
                                    &nbsp;<asp:ImageButton ID="aeToggler" runat="server"></asp:ImageButton></td>
                                <td style="width:98%">
                                    <asp:Label ID="aeLabel" runat="server">Adverse Events</asp:Label>
                                    |
                                    <asp:Label ID="aeNumberTotal" runat="server"></asp:Label>&nbsp;Total |
                                    <asp:Label ID="aeNumberPending" runat="server"></asp:Label>&nbsp;Pending</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="adverseEventsContainer" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="adverseEvents" CssClass="DataGrid" AutoGenerateColumns="False"
                                        runat="server" Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="aeParentRowIndicator"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="SubjectId" ReadOnly="True" HeaderText="Subject ID"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdAE" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="true" HeaderText="Workflow History">
                                                <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:ImageButton Visible="False" ID="workflowReportAE" runat="server" Height="20px"
                                                        CommandName="ReportImageClickAE"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdAE" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="BoardReviewId" Visible="False"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadAE" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" ToolTip="Remove Review Letter" ID="removeNotificationLetterAE"
                                                        Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="otherEventsHeader" runat="server">
                        <br />
                        <table class="PaddedDataTitle" width="100%">
                            <tr>
                                <td style="width:2%">
                                    &nbsp;<asp:ImageButton ID="oeToggler" runat="server"></asp:ImageButton></td>
                                <td style="width:98%">
                                    Other Events |
                                    <asp:Label ID="oeNumberTotal" runat="server"></asp:Label>&nbsp;Total |
                                    <asp:Label ID="oeNumberPending" runat="server"></asp:Label>&nbsp;Pending
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="otherEventsContainer" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="otherEvents" CssClass="DataGrid" AutoGenerateColumns="False" runat="server"
                                        Width="100%">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:TemplateColumn Visible="False">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="oeParentRowIndicator"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn></asp:TemplateColumn>
                                            <asp:BoundColumn DataField="FormsId" ReadOnly="True" HeaderText="OE#"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="OtherEventType" ReadOnly="True" HeaderText="Event Type">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReceivedDate" ReadOnly="True" HeaderText="Date Received">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="BoardName" ReadOnly="True" HeaderText="Board"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="ReviewType" ReadOnly="True" HeaderText="Review Type"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Status" ReadOnly="True" HeaderText="Review Status"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="StatusModifiedDate" ReadOnly="True" HeaderText="Status Date">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="ResponseDate" ReadOnly="True" HeaderText="Response Date">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Review Letters">
                                                <ItemTemplate>
                                                    <asp:Label ID="notificationLetterIdOE" Visible="false" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "NotificationLetterId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="true" HeaderText="Workflow History">
                                                <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                <ItemTemplate>
                                                    <asp:ImageButton Visible="False" ID="workflowReportOE" runat="server" Height="20px"
                                                        CommandName="ReportImageClickOE"></asp:ImageButton>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn Visible="False" HeaderText="Protocol Process Id">
                                                <ItemTemplate>
                                                    <asp:Label ID="protocolProcessIdOE" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProtocolProcessId") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:BoundColumn DataField="BoardReviewId" Visible="False"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="View"></asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Select File" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:FileUpload ID="fileUploadOE" runat="server" ToolTip="Select Notification Letter"
                                                        Enabled="false" />
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Remove Review Letters" ItemStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:CheckBox runat="server" EnableViewState="true" ToolTip="Remove Review Letter"
                                                        ID="removeNotificationLetterOE" Enabled="false"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:EditCommandColumn EditText="Edit" CancelText="Cancel" UpdateText="Save" HeaderText="Action">
                                            </asp:EditCommandColumn>
                                        </Columns>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr id="cloneControls" runat="server" visible="false">
                <td>
                    <div id="cloneDiv" runat="server" style="width: 150px; border: solid 2px #c36507">
                        <asp:ImageButton ID="cloneProtocol" runat="server" ImageUrl="../Images/b_cloneprotocol.gif">
                        </asp:ImageButton>
                        <asp:CheckBoxList ID="cloneOptions" runat="server">
                            <asp:ListItem Value="staff" Text="Include Staff" />
                            <asp:ListItem Value="attachments" Text="Include Attachments" />
                        </asp:CheckBoxList>
                    </div>
                </td>
            </tr>          
        </table>
    </form>
</body>
</html>
